//
//  MessageSession.h
//  SouthChina
//
//  Created by creator_lq on 14/12/4.
//  Copyright (c) 2014年 科创. All rights reserved.
//

#import "ORMRecord.h"

#define SESS_ID @"sess_id"
#define SESSPICTURE @"sessionPic"
#define TEXT @"text"
#define TITLE @"title"
#define BADGENUMBER @"badgeNumber"
#define SESSIONTYPE @"sessionType"
#define OPPOSITEID @"oppositeId"
#define ISREMIND @"isremind"


@interface MessageSession : ORMRecord

@property(nonatomic,retain) NSString* sess_id;
@property(nonatomic,retain) NSString* sessionPic;
@property(nonatomic,retain) NSString* text;
@property(nonatomic,retain) NSString* title;
@property int badgeNumber;
@property(nonatomic,retain) NSString* sessionType;
@property(nonatomic,retain) NSString* oppositeId;
@property(nonatomic,retain) NSString* isremind;

//String sessionId, String sessionType, String oppositeId, String title, String text, String sessionPic, String isremind, Date updatime, Map<String, Object> otherInfo

-(MessageSession*) initWithData:(NSString*)_ses_id sesType:(NSString*)_sessionType oppositeId:(NSString*)_oppositeId title:(NSString*)_title text:(NSString*)_text sessionPic:(NSString*)_sessionPic isremind:(NSString*)_isremind updatime:(NSDate*) _updatime otherInfo:(NSDictionary*) _otherInfo;

@end
